import request from "@/utils/request";

/**
 * 查询所有员工
 * @param {*} data
 */
export function getAllEmployeesApi(params) {
  return request({
    url: "/get_all_employees",
    method: "get",
    params,
  });
}
/**
 * 创建员工
 * @param {*} data
 */
export function createEmployeeApi(params) {
  return request({
    url: "/create_employee",
    method: "get",
    params,
  });
}
/**
 * 修改员工
 * @param {*} data
 */
export function updateEmployeeApi(params) {
  return request({
    url: "/update_employee",
    method: "get",
    params,
  });
}
/**
 * 获取所有订单角色
 * @param {*} data
 */
export function getAllOrderRoleApi(params) {
  return request({
    url: "/getAllOrderRole",
    method: "get",
    params,
  });
}
/**
 * 获取所有客资角色
 * @param {*} data
 */
export function getAllKzRoleApi(params) {
  return request({
    url: "/getAllKzRole",
    method: "get",
    params,
  });
}
/**
 * 获取所有部门
 * @param {*} data
 */
export function getAllDepartmentsApi(params) {
  return request({
    url: "/getAllDepartments",
    method: "get",
    params,
  });
}
